# Create your tests here.
import requests

pdf = "http://222.186.180.177:81/file/api/base64/784-63706602.pdf"
requests_get = requests.get(pdf, stream=True)
content = requests_get.content
address = "/home/huan/Downloads/"
try:
    with open(address + "1231.pdf", "wb") as pdf:
        pdf.write(content)
except IOError:
    print("IO ERROR")
finally:
    pdf.close()
